﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Warhammer40K_Simulator.view
{
    /// <summary>
    /// Interaction logic for army.xaml
    /// </summary>
    public partial class army : UserControl
    {

        public static readonly DependencyProperty modelproperty = DependencyProperty.Register("model"
            , typeof(model.army)
            , typeof(view.army)
            , new PropertyMetadata(model_PropertyChanged));

        public model.army Model
        {
            get { return (model.army)GetValue(modelproperty); }
            set { SetValue(modelproperty, value); }
        }

        protected static void model_PropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            army a = (army)obj;
            //b.build_army_tree(b.Model.Armies, b.TreeView_Control.Items);

        }

        public army()
        {
            InitializeComponent();
        }
    }
}
